import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'zip',
      keepAlive: true,
      order: 1000,
      title: $t('zip.title'),
    },
    name: 'Mes/wm',
    path: '/mes/wm',
    children: [
      {
        meta: {
          title: $t('zip.one'),
        },
        name: 'Warehouse',
        path: 'warehouse',
        component: () => import('#/views/mes/wm/warehouse/index.vue'),
      },
      {
        meta: {
          title: $t('zip.two'),
        },
        name: 'Wmstock',
        path: 'wmstock',
        component: () => import('#/views/mes/wm/wmstock/index.vue'),
      },
      {
        meta: {
          title: $t('zip.three'),
        },
        name: 'Itemrecpt',
        path: 'itemrecpt',
        component: () => import('#/views/mes/wm/itemrecpt/index.vue'),
      },
      {
        meta: {
          title: $t('zip.four'),
        },
        name: 'Arrivalnotice',
        path: 'arrivalnotice',
        component: () => import('#/views/mes/wm/arrivalnotice/index.vue'),
      },
      // {
      //     meta: {
      //         title: $t("zip.five"),
      //     },
      //     name: "Rtvendor",
      //     path: "rtvendor",
      //     component: () => import("#/views/mes/wm/tvendor/index.vue"),
      // }
      {
        meta: {
          title: $t('zip.six'),
        },
        name: 'Issue',
        path: 'issue',
        component: () => import('#/views/mes/wm/issue/index.vue'),
      },
      {
        meta: {
          title: $t('zip.seven'),
        },
        name: 'Rtissue',
        path: 'rtissue',
        component: () => import('#/views/mes/wm/rtissue/index.vue'),
      },
      {
        meta: {
          title: $t('zip.eight'),
        },
        name: 'Productrecpt',
        path: 'productrecpt',
        component: () => import('#/views/mes/wm/productrecpt/index.vue'),
      },
      {
        meta: {
          title: $t('zip.nine'),
        },
        name: 'Productsales',
        path: 'productsales',
        component: () => import('#/views/mes/wm/productsales/index.vue'),
      },
      {
        meta: {
          title: $t('zip.ten'),
        },
        name: 'Rtsales',
        path: 'rtsales',
        component: () => import('#/views/mes/wm/rtsales/index.vue'),
      },
      {
        meta: {
          title: $t('zip.eleven'),
        },
        name: 'Transfer',
        path: 'transfer',
        component: () => import('#/views/mes/wm/transfer/index.vue'),
      },
      {
        meta: {
          title: $t('zip.twelve'),
        },
        name: 'Stocktaking',
        path: 'stocktaking',
        component: () => import('#/views/mes/wm/stocktaking/index.vue'),
      },
      {
        meta: {
          title: $t('zip.thirteen'),
        },
        name: 'Package',
        path: 'package',
        component: () => import('#/views/mes/wm/package/index.vue'),
      },
      {
        meta: {
          title: $t('zip.fourteen'),
        },
        name: 'Barcode',
        path: 'barcode',
        component: () => import('#/views/mes/wm/barcode/index.vue'),
      },
      {
        meta: {
          title: $t('zip.fifteen'),
        },
        name: 'Sn',
        path: 'sn',
        component: () => import('#/views/mes/wm/sn/index.vue'),
      },
      {
        meta: {
          title: $t('zip.sixteen'),
        },
        name: 'Outsourceissue',
        path: 'outsourceissue',
        component: () => import('#/views/mes/wm/outsourceissue/index.vue'),
      },
      {
        meta: {
          title: $t('zip.seventeen'),
        },
        name: 'Outsourcerecpt',
        path: 'outsourcerecpt',
        component: () => import('#/views/mes/wm/outsourcerecpt/index.vue'),
      },
    ],
  },
];

export default routes;
